<?xml version="1.0" encoding="UTF-8"?>
<data>


<productlist>
	<#list pager.list as list>
		<product>
			<id><![CDATA[${list.id}]]></id>
			<name><![CDATA[${list.name}]]></name>
			<categoryId><![CDATA[${list.productCategory.id}]]></categoryId>
			<category><![CDATA[${list.productCategory.name}]]></category>
			<brand><![CDATA[${list.p1}]]></brand>				
			<marketPrice><![CDATA[${list.marketPrice}]]></marketPrice>
			<price><![CDATA[${list.price}]]></price>	
						
		
		
		
		<#if (list.productCategory.id == 1)!>
			
			<#list list.p29?split("，") as s>
				    <mainPic${s_index+1}><![CDATA[${s}]]></mainPic${s_index+1}>
				</#list>
				
				<#list list.p30?split("，") as s>
				    <secPic${s_index+1}><![CDATA[${s}]]></secPic${s_index+1}>
				</#list>
			</#if>
			
			<#if (list.productCategory.id == 2)!>
			
			<#list list.p32?split("，") as s>
				    <mainPic${s_index+1}><![CDATA[${s}]]></mainPic${s_index+1}>
				</#list>
				
				<#list list.p33?split("，") as s>
				    <secPic${s_index+1}><![CDATA[${s}]]></secPic${s_index+1}>
				</#list>
			</#if>
			<#if (list.productCategory.id == 5)!>
			
			<#list list.p27?split("，") as s>
				    <mainPic${s_index+1}><![CDATA[${s}]]></mainPic${s_index+1}>
				</#list>
				
				<#list list.p28?split("，") as s>
				    <secPic${s_index+1}><![CDATA[${s}]]></secPic${s_index+1}>
				</#list>
			</#if>
					
		</product>	
	</#list>	
</productlist>
	
	<pager>
	<pageNumber><![CDATA[${pager.pageNumber}]]></pageNumber>
	<pageSize><![CDATA[${pager.pageSize}]]></pageSize>
	<totalCount><![CDATA[${pager.totalCount}]]></totalCount>
	<pageCount><![CDATA[${pager.pageCount}]]></pageCount>
	</pager>
</data>
					